<?php
define("APP_PATH",  realpath(dirname(__FILE__) . '/')); /* 指向public的上一级 */
try{
	$app  = new Yaf_Application(APP_PATH . "/conf/application.ini");
	$app->bootstrap()->run();
} catch (Exception $e){
    echo "[" . date("Y-m-d H:i:s", time()) . "]". $e->getCode() . '--' . $e->getMessage() . "\r\n";
    //file_put_contents(APP_PATH.'/log/yaf.log',"[" . date("Y-m-d H:i:s", time()) . "]". $e->getCode() . '--' . $e->getMessage() . "\r\n" , FILE_APPEND);

}